﻿@model ViVa.ActiveDirectory.ADEntry

@{
    ViewBag.Title = "LaatUserZien";
    ViewData["SecurityLevel"] = "isHelpdesk";
}
<p>
    @Html.ActionLink("Edit", "EditUser", new { SamAccountName = @Model.SamAccountName })
</p>

    <h2>Details van: @Model.DisplayName</h2>

    <div class="form_table">

    <table>
        <tr>
            <th colspan="2">Medewerker gegevens</th>
        </tr>
        <tr>
            <td>Naam</td><td>@Model.Name</td>
        </tr>
        <tr>
            <td>Functie</td><td>@Model.Title</td>
        </tr>
        <tr>
            <td>Afdeling</td><td>@Model.Department</td>
        </tr>
        <tr>
            <td>Locatie</td><td>@Model.PhysicalDeliveryOfficeName</td>
        </tr>
        <tr>
            <td>Bedrijf</td><td>@Model.Company</td>
        </tr>
        <tr>
            <td>Personeelsnummer:</td><td>@Model.EmployeeID</td>
        </tr>
    </table>

    <table>
        <tr>
            <th colspan="2">Account gegevens</th>
        </tr>
        <tr>
            <td>Email</td><td>@Model.Email</td>
        </tr>
        <tr>
            <td>Inlognaam</td><td>@Model.SamAccountName</td>
        </tr>
        <tr>
            <td>OU</td><td>@Model.DistinguishedName</td>
        </tr>
    </table>

    <table>
        <tr>
            <th colspan="2">Telefoonnummers</th>
        </tr>
        <tr>
            <td>Telefoon</td><td>@Model.TelephoneNumber</td>
        </tr>
        <tr>
            <td>Fax</td><td>@Model.FacsimileTelephoneNumber</td>
        </tr>
        <tr>
            <td>Mobiel</td><td>@Model.Mobile</td>
        </tr>
        <tr>
            <td>Pager</td><td>@Model.Pager</td>
        </tr>
        <tr>
            <td>Thuis</td><td>@Model.HomePhone</td>
        </tr>
        <tr>
            <td>Notities</td><td>@Model.Info</td>
        </tr>
    </table> 

    <table>
        <tr>
            <th colspan="2">Groepslidmaatschappen</th>
        </tr>
        <tr>
            <td></td>
            @if (@Model.MemberOf != null)
                {
                    foreach (string member in @Model.MemberOf)
                    { <tr><td></td><td>@member</td></tr> }
                }
            else
                {
                    <tr><td></td><td>Lid van geen enkele group (behalve wellicht domain users).</td></tr>
                }
        </tr>
    </table>
</div>